﻿<%@ Page Title="" Language="VB" MasterPageFile="~/KYC/MasterPagePopup.master" AutoEventWireup="false" CodeFile="CDDHistory.aspx.vb" Inherits="KYC_CDDHistory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 200px;
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        var prm = Sys.WebForms.PageRequestManager.getInstance();

        prm.add_initializeRequest(InitializeRequest);
        prm.add_endRequest(EndRequest);

        function InitializeRequest(sender, args) {
            $get('ContentPlaceHolder1_UpdatePanel1').style.cursor = 'wait';
        }

        function EndRequest(sender, args) {
            $get('ContentPlaceHolder1_UpdatePanel1').style.cursor = 'auto';
        }

   </script>
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
       <ContentTemplate>
        <table style="width:100%;" class="control">
            <tr>
                <td class="style1">
                    เลขประจำตัวลูกค้า : </td>
                <td>
                    <asp:Label ID="lblCustCode" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="lblID" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblUniqueID" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    ชื่อ (ไทย) :</td>
                <td>
                    <asp:Label ID="lblNameTH" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    ชื่อ (อังกฤษ) :</td>
                <td>
                    <asp:Label ID="lblNameEN" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td style="text-align: right">
                    <asp:Button ID="btnClose" runat="server" CssClass="control" Text="ปิด" 
                        Width="80px" />
                </td>
            </tr>
        </table>
    <div align="center">
                    <asp:GridView ID="grdIndividual" runat="server" CellPadding="4" 
                        ForeColor="#333333" AutoGenerateColumns="False" Width="100%" 
                        AllowPaging="True" CssClass="control">
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:TemplateField HeaderText="วันที่">
                            <ItemTemplate>
                                 <asp:Label ID="lblUpdateDate" runat="server" 
                                     Text='<%# Eval("UPDATEDATE") %>'></asp:Label>
                                 </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="LOG_DATE" HeaderText="เวลา" 
                                DataFormatString="{0:HH:mm}" HtmlEncode="False">
                            <ItemStyle Width="80px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="ประเมินโดย">
                                <ItemTemplate>
                                    <asp:Label ID="lblUpdateBy" runat="server" Text='<%# Eval("UPDATEBY") %>'></asp:Label>
                                    &nbsp;<asp:Label ID="lblDepUpdate" runat="server" 
                                        Text='<%# "(" & Eval("DEPUPDATE") & ")" %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="BRANCHCODE" HeaderText="สาขา">
                            <ItemStyle Width="80px" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="ระดับ" 
                                DataField="NEW_AMLCDD" >
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle Width="10px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="NEW_AMLREASON" HeaderText="เหตุผล" > 
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
             
                    <div align="center">
                    <asp:GridView ID="grdNonIndividual" runat="server" CellPadding="4" 
                        ForeColor="#333333" AutoGenerateColumns="False" Width="100%" 
                        AllowPaging="True" CssClass="control">
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:TemplateField HeaderText="วันที่">
                            <ItemTemplate>
                                 <asp:Label ID="lblUpdateDate" runat="server" 
                                     Text='<%# Eval("UPDATEDATE") %>'></asp:Label>
                                 </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                            </asp:TemplateField>
                             <asp:BoundField DataField="LOG_DATE" HeaderText="เวลา" 
                                DataFormatString="{0:HH:mm}" HtmlEncode="False">
                            <ItemStyle Width="80px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="ประเมินโดย">
                                <ItemTemplate>
                                    <asp:Label ID="lblUpdateBy" runat="server" Text='<%# Eval("UPDATEBY") %>'></asp:Label>
                                    &nbsp;<asp:Label ID="lblDepUpdate0" runat="server" 
                                        Text='<%# "(" & Eval("DEPUPDATE") & ")" %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="BRANCHCODE" HeaderText="สาขา">
                            <ItemStyle Width="80px" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="ระดับ" 
                                DataField="NEW_AMLCDD" >
                            <ItemStyle Width="10px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="NEW_AMLREASON" HeaderText="เหตุผล" > 
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
</div>
</div>
      </ContentTemplate>
  </asp:UpdatePanel>
</asp:Content>


